/*
 * Exploder
 * 
 * Tero Pyylampi (218437), Jussi Tuurinkoski (211594)
 *
 * Level Editor interface
 */

#include "EditorLayerInterface.h"
#include "EditorScene.h"
#include "../game/interface/GameInterfaceEngine.h"

// default constructor
EditorLayerInterface::EditorLayerInterface( EditorScene *editorScene )
	: mEditorScene( editorScene ), mInterfaceEngine( 0 ) {
	mInterfaceEngine = new GameInterfaceEngine();
	mInterfaceEngine->createEditorModeInterface( this, mEditorScene->getMainEngine(), mEditorScene );
}

// destructor
EditorLayerInterface::~EditorLayerInterface() {
	delete mInterfaceEngine;
}

// update interface
void EditorLayerInterface::update( cocos2d::ccTime dt ) {
	mInterfaceEngine->update( dt );
}

// get interface engine
GameInterfaceEngine *EditorLayerInterface::getInterfaceEngine() {
	return mInterfaceEngine;
}

